package com.github.prontera.service;

import java.util.List;

import com.github.prontera.util.Page;

/**
 * @author Alex
 */
public interface CrudService<T> {

	int insert(T record);

	T get(Long id);

	int update(T record);

	List<T> find(final T entity);

	long count(final T entity);

	Page<T> page(final T entity);

	T findOne(final T entity);

	int remove(final T entity);

	int insertBatch(List<T> records);
}
